<?php

/**
 * Tasaconv form base class.
 *
 * @method Tasaconv getObject() Returns the current form's model object
 *
 * @package    aeropostal
 * @subpackage form
 * @author     Your name here
 */
abstract class BaseTasaconvForm extends BaseFormPropel
{
  public function setup()
  {
    $this->setWidgets(array(
      'uMedida1' => new sfWidgetFormInputHidden(),
      'uMedida2' => new sfWidgetFormInputHidden(),
      'factor'   => new sfWidgetFormInputText(),
    ));

    $this->setValidators(array(
      'uMedida1' => new sfValidatorPropelChoice(array('model' => 'Unidmedida', 'column' => 'simbolo', 'required' => false)),
      'uMedida2' => new sfValidatorPropelChoice(array('model' => 'Unidmedida', 'column' => 'simbolo', 'required' => false)),
      'factor'   => new sfValidatorNumber(),
    ));

    $this->widgetSchema->setNameFormat('tasaconv[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    parent::setup();
  }

  public function getModelName()
  {
    return 'Tasaconv';
  }


}
